package com.xy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication(scanBasePackages = {"com.alibaba.nacos","com.xy.consumer"})
// 启动nacos客户端，注册服务
@EnableDiscoveryClient
@EnableFeignClients
public class NacosConsumerServer {

    public static void main(String[] args) {
        SpringApplication.run(NacosConsumerServer.class, args);
    }
    //测试地址
    //http://192.168.13.112:8080/lsd/pr/provider/dept/get/5
}